

function createModalWindow(url, settings) {
    
    typeModal = settings.type || "iframe";
    
    switch(typeModal) {
        case 'iframe':
            $.colorbox($.extend({ href: url, iframe: true, width:'80%', height:'80%' }, settings));
            break;
        case 'photo':
            $.colorbox($.extend({ href: url, photo: true, scalePhotos: true }, settings));
            break;
        case 'form':
            $.colorbox($.extend({  }, settings));
            break;
    }
    
}

function closeModalWindow() {
    $.colorbox.close();
}

//function resizeModal() {
//    this.parent.$.colorbox.resize();
//}



